package com.wargame.engine;

import com.wargame.hexmap.HexagonalMap;

import java.util.HashMap;

import com.wargame.engine.Judge;

/**
 * 算子状态更新方法——根据交互信息
 *
 * @param thisOpr 算子对象
 * @param interact 交互对象
 * @return Object
 * */
public Object CalloutInteract(Operator thisOpr, Interact interact, HexagonalMap map, HashMap<String, Judge> judgeHandlers) {

    String interactType = interact.getAttri("Name");

    if (interactType.equals("Shooted")){
        Object[] params = new Object[]{thisOpr, interact, judgeHandlers};
        return thisOpr.invokeMethod("CalloutShootedInteract",params);
    }
    else{
        System.out.println("未录入的交互类型："+interactType);
        return null;
    }
}

